<template>
  <div>这是子组件 {{ props.count }}</div>
</template>
<script setup lang="ts">
import { onUpdated, onBeforeUpdate } from "vue";
const props = defineProps({
  count: {
    type: Number,
  },
});
onBeforeUpdate(() => {
  console.log("子组件更新了 前");
});
onUpdated(() => {
  console.log("子组件更新了");
});
</script>
<style scoped lang="scss"></style>
